package com.cqrt.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cqrt.entity.WorkItemDO;
import com.cqrt.vo.WorkItemVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;


@Mapper
public interface RtWorkItemMapper extends BaseMapper<WorkItemDO> {
    List<WorkItemVO>  queryWorkItem(@Param("AOId") String oId);

    String selectPJJobIdByPJID(@Param("objID")String objId);

    String queryExtendedAttributes(@Param("objID")String objId,@Param("attname")String attName);

    List<WorkItemVO> queryWorkItemByCreatorId(@Param("userId") String userId);

    List<BigInteger> selectOidByPjStatus(@Param("list") List<BigInteger> oids);

    void setProjectTaskExecutoroid(@Param("oid") String oid,@Param("uid")String uid);

    String selectProjectExecutorOid(@Param("oid") String oid);

    String selectPJPlanExecutorOid(@Param("oid") String oid);

    void setPJPlanExecutorOid(@Param("oid") String oid,@Param("uid")String uid);

    void setPJJOBState(@Param("oid")String oid);

    String selectWorkFlowContainerOidByFlowCode(@Param("code") String code);
}
